package com.dwjm.service.Impl;


import com.dwjm.mapper.DormitoryMapper;
import com.dwjm.pojo.Dormitory;
import com.dwjm.service.DormitoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DormitoryServiceImpl implements DormitoryService {
    @Autowired
    private DormitoryMapper dormitoryMapper;

    @Override
    public Dormitory getDormitory(Integer dormId) {
        Dormitory dormitory = dormitoryMapper.getByDormID(dormId);
        return dormitory;
    }
}
